﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace HPSocketLibrary.Devices
{
    /// <summary>
    /// 美团接口，数据包Head
    /// </summary>
    public class MtHeadViewxxxx
    {
        /// <summary>
        /// 版本号（当前版本写1.0）
        /// </summary>
        public string version { get; set; } = "1.0";

        /// <summary>
        /// 消息类型 请求（request）和应答（response）
        /// </summary>
        public string? type { get; set; }

        /// <summary>
        /// 请求的Id（唯⼀标识）
        /// </summary>
        public string? request_id { get; set; } = DateTime.Now.Ticks.ToString();

        /// <summary>
        /// 消息名称
        /// </summary>
        public string? interfaceName { get; set; }

        /// <summary>
        /// 状态码
        /// </summary>
        public int status_code { get; set; }

        /// <summary>
        /// ⼚商信息
        /// </summary>
        public string? vendor { get; set; }

        /// <summary>
        /// model信息
        /// </summary>
        public string? model { get; set; }

        /// <summary>
        /// 设别序列号，唯⼀标识该设备
        /// </summary>
        public string? serialNo { get; set; }
    }
}
